{include file="include:header" /}
<body class="fixed-sidebar full-height-layout gray-bg" >
<!-- 导航 -->
<div class="row wrapper border-bottom white-bg page-heading slideshow-list">
    <div class="col-sm-4">
        <h2>轮播图</h2>
        <ol class="breadcrumb">
            <li><a href="{:url('Index/home')}">主页</a></li>
            <li><a href="#">前台设置</a></li>
            <li><strong>轮播图(首页)</strong></li>
        </ol>
    </div>
</div>
<!-- 内容 -->
<div class="wrapper wrapper-content">
    <!-- 表格主体 -->
    <form class="valid-form form-horizontal carousel-add" action="onsubmit:return false;">
        <table class="table table-bordered white-bg" style="max-width:1100px;">
            <thead>
            <tr>
                <th colspan="3"><h4>首页广告设置</h4></th>
            </tr>
            </thead>
            <tr>
                <td>
                    <div class="vcheck-abs"><input class="form-control" datatype="url" type="text" name="carousel_url[]" placeholder="广告链接" errormsg="请输入有效的链接" sucmsg=" " ignore="ignore"  value="{$list[0]?$list[0]['carousel_url']:''}" />
                    </div>
                    <br>
                    <div class="upload-pic" style="width:300px;">
                        <div class="pic-wrap">
                            {if condition="$count lt 1"}
                            <img src="__PUBLIC__/Images/img.jpg" alt="" />
                            {else/}
                            <img src="{$list[0]['carousel_img']}" alt="" />
                            {/if}
                        </div>
                        <div class="upload-btn">上传</div>
                        <div class="delete-pic-btn">删除</div>
                        <input class="pic-url" type="hidden" name="carousel_img[]" value="{$list[0]?$list[0]['carousel_img']:''}" size="640,300" />
                    </div>
                </td>
                <td>
                    <div class="vcheck-abs"><input class="form-control" datatype="url" type="text" name="carousel_url[]" placeholder="广告链接" errormsg="请输入有效的链接" sucmsg=" " ignore="ignore" value="{$list[1]?$list[1]['carousel_url']:''}" />
                    </div>
                    <br>
                    <div class="upload-pic" style="width:300px;">
                        <div class="pic-wrap">
                            {if condition="$count lt 2"}
                            <img src="__PUBLIC__/Images/img.jpg" alt="" />
                            {else/}
                            <img src="{$list[1]['carousel_img']}" alt="" />
                            {/if}
                        </div>
                        <div class="upload-btn">上传</div>
                        <div class="delete-pic-btn">删除</div>
                        <input class="pic-url" type="hidden" name="carousel_img[]" value="{$list[1]?$list[1]['carousel_img']:''}" size="640,300"  />

                    </div>
                </td>
                <td>
                    <div class="vcheck-abs"><input class="form-control" datatype="url" type="text" name="carousel_url[]" placeholder="广告链接" errormsg="请输入有效的链接" sucmsg=" " ignore="ignore"  value="{$list[2]?$list[2]['carousel_url']:''}"/>
                    </div>
                    <br>
                    <div class="upload-pic" style="width:300px;">
                        <div class="pic-wrap">
                            {if condition="$count lt 3"}
                            <img src="__PUBLIC__/Images/img.jpg" alt="" />
                            {else/}
                            <img src="{$list[2]['carousel_img']}" alt="" />
                            {/if}
                        </div>
                        <div class="upload-btn">上传</div>
                        <div class="delete-pic-btn">删除</div>
                        <input class="pic-url" type="hidden" name="carousel_img[]" value="{$list[2]?$list[2]['carousel_img']:''}" size="640,300"  />

                    </div>
                </td>
            </tr>
            <tr>
                <td>
                    <div class="vcheck-abs"><input class="form-control" datatype="url" type="text" name="c_url[]" placeholder="广告链接" errormsg="请输入有效的链接" sucmsg=" " ignore="ignore" value="{$list[3]?$list[3]['carousel_url']:''}" />
                    </div>
                    <br>
                    <div class="upload-pic" style="width:300px;">
                        <div class="pic-wrap">
                            {if condition="$count lt 4"}
                            <img src="__PUBLIC__/Images/img.jpg" alt="" />
                            {else/}
                            <img src="{$list[3]['carousel_img']}" alt="" />
                            {/if}
                        </div>
                        <div class="upload-btn">上传</div>
                        <div class="delete-pic-btn">删除</div>
                        <input class="pic-url" type="hidden" name="carousel_img[]" value="{$list[3]?$list[3]['carousel_img']:''}" size="640,300"  />

                    </div>
                </td>
                <td>
                    <div class="vcheck-abs"><input class="form-control" datatype="url" type="text" name="carousel_url[]" placeholder="广告链接" errormsg="请输入有效的链接" sucmsg=" " ignore="ignore"  value="{$list[4]?$list[4]['carousel_url']:''}"/>
                    </div>
                    <br>
                    <div class="upload-pic" style="width:300px;">
                        <div class="pic-wrap">
                            {if condition="$count lt 5"}
                            <img src="__PUBLIC__/Images/img.jpg" alt="" />
                            {else/}
                            <img src="{$list[4]['carousel_img']}" alt="" />
                            {/if}
                        </div>
                        <div class="upload-btn">上传</div>
                        <div class="delete-pic-btn">删除</div>
                        <input class="pic-url" type="hidden" name="carousel_img[]" value="{$list[4]?$list[4]['carousel_img']:''}" size="640,300"  />

                    </div>
                </td>
                <td>
                    <div class="vcheck-abs"><input class="form-control" datatype="url" type="text" name="carousel_url[]" placeholder="广告链接" errormsg="请输入有效的链接" sucmsg=" " ignore="ignore"  value="{$list[5]?$list[5]['carousel_url']:''}"/>
                    </div>
                    <br>
                    <div class="upload-pic" style="width:300px;">
                        <div class="pic-wrap">
                            {if condition="$count lt 6"}
                            <img src="__PUBLIC__/Images/img.jpg" alt="" />
                            {else/}
                            <img src="{$list[5]['carousel_img']}" alt="" />
                            {/if}
                        </div>
                        <div class="upload-btn">上传</div>
                        <div class="delete-pic-btn">删除</div>
                        <input class="pic-url" type="hidden" name="carousel_img[]" value="{$list[5]?$list[5]['carousel_img']:''}" size="640,300"  />

                    </div>
                </td>
            </tr>
            <tr>
                <td colspan="4">
                    <div class="text-center">
                        <input type="button"  class="btn btn-danger submit" value="确认提交"  />&nbsp;&nbsp;

                    </div>

                </td>
            </tr>
        </table>
    </form>
    <p class="text-danger">
        1、上传图片大小请小于200kb，尺寸为640*300；<br>
        2、广告如果没有对应链接，请留空。
    </p>
</div>

</body>
</html>
{include file="include:js" /}


